﻿using ZenSystemService.Api.Entities;

namespace ZenSystemService.Api.DTOs
{
    public class UserDTO
    {
        public int UserId { get; set; }
        public string? Username { get; set; }
        public string? PasswordHash { get; set; }
        public ICollection<RoleDTO>? Roles { get; set; }
        public InstitutionDTO? Institution { get; set; }

        public string? UserType { get; set; }
        public string? Remark { get; set; }
        public string? RealName { get; set; }
        public string? Email { get; set; }
        public string? Enabled { get; set; }
        public string? Gender { get; set; }
        public string? AvatarUrl { get; set; }
        public DateTime? LastLoginDate { get; set; }
        public DateTime? LastModifyPwdDate { get; set; }
        public string? Address { get; set; }
        public string? Token { get; set; }
        public int? CreatedUserID { get; set; }
        public DateTime? CreatedDate { get; set; }
        public string? Mobile { get; set; }
        public int? ModifiedUserID { get; set; }
        public DateTime? ModifiedDate { get; set; }
        public int? CoachId { get; set; }
        public UserDTO? Coach { get; set; }
        public string? Birthday { get; set; }
    }



    public class TraineeQuery
    {
        /// <summary>
        /// 机构ID
        /// </summary>
        public int? InstitutionId { get; set; }



        /// <summary>
        /// 课程类型Id
        /// </summary>
        public int CourseTypeId { get; set; }

        /// <summary>
        /// 教练ID
        /// </summary>
        public int? CoachId { get; set; }
    }

    public class TraineeQuery2
    {
        /// <summary>
        /// 机构ID
        /// </summary>
        public int? InstitutionId { get; set; }


        /// <summary>
        /// 教练ID
        /// </summary>
        public int? CoachId { get; set; }


        public string SearchKey { get; set; }


        /// <summary>
        /// 查询类别 0=所有 1= 主账号 2=子账号
        /// </summary>
        public int SearchType { get; set; }
    }

    public class TraineeQuery3
    { 
        public int MainUserId { get; set; }
    }

}